package com.zzxy.mybatis12.entity.entity;

import java.util.Date;
import java.util.List;

public class Orderdetal {

    private int id;
    private int orderId;
    private String itemNum;

    private Date createtime;

    private String note;

    private User user;
    private List<Orderdetal> ods;

    public void setItemNum(String itemNum) {
        this.itemNum = itemNum;
    }

    public Date getCreatetime() {
        return createtime;
    }

    public void setCreatetime(Date createtime) {
        this.createtime = createtime;
    }

    public String getNote() {
        return note;
    }

    public void setNote(String note) {
        this.note = note;
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    public List<Orderdetal> getOds() {
        return ods;
    }

    public void setOds(List<Orderdetal> ods) {
        this.ods = ods;
    }

    @Override
    public String toString() {
        return "Orderdetal{" +
                "id=" + id +
                ", orderId=" + orderId +
                ", itemNum=" + itemNum +
                '}';
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getOrderId() {
        return orderId;
    }

    public void setOrderId(int orderId) {
        this.orderId = orderId;
    }

    public int getItemNum() {
        return itemNum;
    }

    public void setItemNum(int itemNum) {
        this.itemNum = itemNum;
    }
}
